package com.wanxi.type;

import java.util.Arrays;

public class StringToIntArr {
    public static void main(String[] args) {
        String str = "91 33 5 6 7";
        String[] arrStr = str.split(" ");
        int length = arrStr.length;
        int[] arr = new int[length];
        for (int i = 0; i < arr.length; i++) {
            arr[i] = Integer.parseInt(arrStr[i]);
            System.out.print(arr[i]+",");
        }
        Arrays.sort(arr);
        System.out.println(Arrays.toString(arr));

    }
}
